package quoridor;

public class QuoridorMove implements Move
{
   private Coordinate target;
   
   /**
    * Identifies the type of move.
    * 0 - move piece
    * 1 - place fence
    */
   private int type;
   
   private String playerColour;
   
   private boolean isVertical;
   
   public QuoridorMove(Coordinate newTarget, int newType, String newPlayerColour)
   {
      target = newTarget;
      type = newType;
      playerColour = newPlayerColour;
   }
   
   @Override
   public Coordinate getCoordinate()
   {
      return target;
   }

   @Override
   public int getType()
   {
      return type;
   }
   
   public String getPlayer()
   {
      return playerColour;
   }
   
   public boolean isVertical()
   {
      return isVertical;
   }

}
